
<meta charset="utf-8">

<?php


include_once($_SERVER['DOCUMENT_ROOT'].'Exiastore/Model/BDD.php');
$bdd = new BDD();



    
$req = $bdd->getBDD()->prepare('DELETE FROM article WHERE idArticle=:id');
$req->execute(array(
'id' => $article = $_GET['id'],
));   

 echo $_GET['id']; 
        
echo "<script> alert('Article supprimé')</script>";
header("Refresh: 0; URL=../View/admin.php");

?>